#!/bin/bash

# cargo modules dependencies -h

modules=(
    "bc_base"
    "bc_block_data"
    "bc_consensus"
    "bc_db"
    "bc_explorer"
    "bc_func_api"
    "bc_lib"
    "bc_manager"
    "bc_p2p"
    "bc_util"
    "bc_wallet"
)

for mod_name in "${modules[@]}"
do
    cargo modules dependencies --no-externs --no-fns --no-owns --no-sysroot --package ${mod_name} | dot -Tpng > ./gen/${mod_name}_mod_dep.png
done